#ifndef SEARCHEDIT_H
#define SEARCHEDIT_H

#include <lgpl-components/fancylineedit.h>

class SearchPopup;

class SearchLineEdit : public Utils::FancyLineEdit
{
    Q_OBJECT
public:
    explicit SearchLineEdit(QWidget *parent = 0);
    ~SearchLineEdit();

signals:

private slots:
    void changePrefix();

protected:
    void focusInEvent(QFocusEvent *);
    void focusOutEvent(QFocusEvent *);

private:
    QMenu * createPrefixesMenu();
    SearchPopup * m_popup;
};

#endif // SEARCHEDIT_H
